package adke.gui.panels;

import adke.managers.ColorManager;
import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JPanel;

public class ColorPanel extends JPanel
{
    public ColorPanel(Color c)
    {
        newColor(c);
    }
    
    public void newColor(Color c)
    {
        setBackground(c);
        Color negative = new Color(255 - c.getRed(), 255 - c.getGreen(), 255 - c.getBlue());
//        setBorder(BorderFactory.createLineBorder(negative, 5));
        setBorder(BorderFactory.createLineBorder(Color.white, 5));
    }
}
